package com.servlet;

public class student {
    private int id;
    private String name;
    private int age;
    private school school;

    public com.servlet.school getSchool() {
        return school;
    }

    public void setSchool(com.servlet.school school) {
        this.school = school;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public student() {
    }

    public student(int id, String name, int age,
                   com.servlet.school school) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.school = school;
    }

    @Override
    public String toString() {
        return "student{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", school=" + school +
                '}';
    }
}
